<!--新增弹窗 开始-->
<div class="modal fade" aria-labelledby="myModalLabel" aria-hidden="true" id="synonymManagementUpdate" *ngIf="initService.init&&details">
    <div class="modal-dialog modal-lg modal-dialog-centered">
      <div class="modal-content">
        <form #editForm="ngForm" (ngSubmit)="_onSubmit(editForm.value)">  
            <input type="hidden" 
                name="synonymId"
                #synonymId="ngModel" 
                [ngModel]="details.synonymId"
                >
          <!-- 模态框头部 -->
          <div class="modal-header">
              <h4 class="modal-title">编辑同义词 - {{ details.keywords }}</h4>
              <button type="button" class="close" data-dismiss="modal" (click)="_init()">&times;</button>
          </div>
        
          <!-- 模态框主体 -->
          <div class="modal-body">
              <div class="container">
                    <div class="input_div">
                        <label class="input_title">关键字：</label>
                        <input class="input_inputStyle" name="keywords" #keywords="ngModel" [ngModel]="details.keywords" placeholder="请输入关键词" required>
                        <span class="keyword_error" *ngIf="keywords.invalid && (keywords.touched)"> 关键词不能为空</span>
                    </div>
                    <div class="input_div">
                        <label class="input_title">是否启用：</label>
                        <select class="input_inputStyle" name="status" #status="ngModel" [ngModel]="details.status">
                            <option value="0">启用</option>
                            <option value="-1">禁用</option>
                        </select>
                    </div>
              </div>
          </div>
          <!-- 模态框底部 -->
          <div class="modal-footer" style="width:100%;">
              <button type="submit" class="btn btn-primary" data-toggle="modal" [disabled]="editForm.invalid">确定</button>
              <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
          </div>
        </form>
      </div>
    </div>
    </div>
    <!--新增弹窗 结束-->